#include "InputManager.h"
#include "SDLHeaders.h"

InputManager::InputManager(void)
{
}

InputManager::~InputManager(void)
{
}

void InputManager::capture(void)
{
	SDL_Event event;
	Listeners::iterator it = _listeners.begin();
	Listeners::const_iterator end = _listeners.end();

	while(SDL_PollEvent(&event)) {
		for(;it != end;++it) {

			EventListener* listener = *it;

			switch(event.type) {
				case SDL_KEYDOWN: 
				{
					
				} break;
				case SDL_KEYUP: 
				{

				} break;
				case SDL_QUIT:
				{

				} break;
				default:
					break;
			}
		}
	}

}